package com.aigou.admin.aigouspringboot.mapper;

import com.aigou.admin.aigouspringboot.entity.Product;
import com.aigou.admin.aigouspringboot.entity.ReceivingAddress;
import com.aigou.admin.aigouspringboot.entity.ShopCart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopCartMapper {
    int deleteByPrimaryKey(String id);

    int insertSelective(ShopCart record);

    ShopCart selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(ShopCart record);

    int updateByPrimaryKey(ShopCart record);

    List<ShopCart> selectAll();

    List<ReceivingAddress> getAddressByUserId(String userId);

    List<Product> gerProductByUserId(String userId);

    ShopCart selectCartByUserId(@Param("userId") String userId);



}